package com.example.demo2.service;


import com.example.demo2.model.BELONG;
import com.example.demo2.model.ResponseBo;
import com.example.demo2.model.TEXT;
import com.example.demo2.model.TYPE;

public interface AdminService {
    /*添加类型*/
    public ResponseBo addType(TYPE type);

    /*获取类型*/
    public ResponseBo getTypes();

    /*获取类型归属*/
    public ResponseBo getBelongs();

    /*添加类型归属*/
    public ResponseBo addBelongs(BELONG belong);

    /*获取文章*/
    public ResponseBo getTexts(int typeid);

    /*添加文章*/
    public ResponseBo addTexts(TEXT text);

    /*获取用户*/
    public ResponseBo getUserById(int userid);
}
